import { createRouter, createWebHashHistory } from 'vue-router'
import knowledgeRetrieval from '@/views/knowledgeRetrieval/knowledgeRetrieval.vue'//搜索
import standardLibrary from '@/views/standardLibrary/standardLibrary.vue'//知识库c
import helperPage from '@/views/helper/helperPage.vue'//
import gptPage from '@/views/helper/gptPage.vue'//
import loginPage from '@/views/loginPage/loginPage.vue'//登录
import headerLayer from '@/layer/headerLayer.vue'

//系统管理
const routes = [
    {
        path: '/loginPage',
        name: '登录',
        component: loginPage
    },
    {
        path: '/',
        name: '需要公共头部',
        component: headerLayer,
        redirect: '/knowledgeRetrieval',
        children: [
            {
                path: '/knowledgeRetrieval',
                name: '搜索',
                component: knowledgeRetrieval
            },
            {
                path: '/standardLibrary',
                name: '知识库',
                component: standardLibrary
            },
            {
                path: '/helperPage',
                name: '帮助',
                component: helperPage
            },
            {
                path: '/gptPage',
                name: '',
                component: gptPage
            }

        ]
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})
export default router
